package com.steakliu.gateway.config;

import com.steakliu.gateway.filter.TokenValidateGatewayFilter;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.steakliu.gateway.filter.TokenValidateGatewayFilter;
import org.apache.logging.log4j.message.ObjectMessage;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;

@Configurable
public class FilterConfig {

    @Bean
    public TokenValidateGatewayFilter tokenValidateGatewayFilter(){
        return new TokenValidateGatewayFilter(new ObjectMapper());
    }
}
